//
//  LHQDestinationHotDetailCollectionViewCell.m
//  God_is_a_Girl
//
//  Created by dllo on 15/9/26.
//  Copyright (c) 2015年 呸. All rights reserved.
//

#import "LHQDestinationHotDetailCollectionViewCell.h"

@implementation LHQDestinationHotDetailCollectionViewCell

- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        
        self.hotspotImageView = [[UIImageView alloc]init];
        self.hotspotImageView.layer.cornerRadius = 10;
        self.hotspotImageView.layer.masksToBounds = YES;
        [self.contentView addSubview:self.hotspotImageView];
        
        
        self.hotSpotName = [[UILabel alloc]init];
        self.hotSpotName.textColor = [UIColor whiteColor];
        [self.contentView addSubview:self.hotSpotName];
        
    
    }
    return self;
}
- (void)applyLayoutAttributes:(UICollectionViewLayoutAttributes *)layoutAttributes
{
    
   
    self.hotspotImageView.frame = self.contentView.frame;
    
    self.hotSpotName.frame = CGRectMake(10, self.contentView.frame.size.height / 4 * 3, self.contentView.frame.size.width, self.contentView.frame.size.height / 6);
}








@end
